.container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  padding: 20rpx;
}

.header {
  text-align: center;
  padding: 60rpx 0 40rpx;
}

.title {
  font-size: 44rpx;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 20rpx;
}

.subtitle {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}

.cards {
  margin-bottom: 40rpx;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  margin-bottom: 30rpx;
  padding: 40rpx;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.love-card {
  background: rgba(255, 182, 193, 0.9);
}

.baby-card {
  background: rgba(173, 216, 230, 0.9);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 30rpx;
}

.icon {
  font-size: 44rpx;
  margin-right: 20rpx;
}

.card-title {
  font-size: 34rpx;
  font-weight: bold;
  color: #333;
}

.card-content {
  text-align: center;
}

.baby-name {
  font-size: 38rpx;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 15rpx;
  display: block;
}

.date {
  font-size: 30rpx;
  color: #666;
  margin-bottom: 20rpx;
  display: block;
}

.label {
  font-size: 26rpx;
  color: #666;
  margin-bottom: 20rpx;
  display: block;
}

.time-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.baby-time {
  justify-content: center;
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80rpx;
  margin: 0 10rpx;
}

.baby-time .time-item {
  min-width: 100rpx;
  margin: 0 15rpx;
}

.time-value {
  font-size: 32rpx;
  font-weight: bold;
  color: #e74c3c;
  display: block;
}

.baby-time .time-value {
  font-size: 28rpx;
  color: #3498db;
}

.time-unit {
  font-size: 22rpx;
  color: #7f8c8d;
  margin-top: 5rpx;
  display: block;
}

/* 情话与相册组合区域样式 */
.quote-photo-section {
  margin-bottom: 40rpx;
}

.combined-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.quote-area {
  flex: 1;
  margin-bottom: 20rpx;
  padding-bottom: 15rpx;
  border-bottom: 1px dashed #eee;
  text-align: center;
  position: relative;
}

.heart-quote-icon {
  font-size: 28rpx;
  color: #ff6b9d;
  margin-bottom: 10rpx;
}

.quote-text {
  font-size: 26rpx;
  line-height: 1.5;
  color: #333;
  display: block;
  margin-bottom: 15rpx;
  font-style: italic;
  padding: 0 10rpx;
  min-height: 80rpx;
}

.quote-signature {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 5rpx;
  padding-right: 20rpx;
}

.signature-text {
  font-size: 22rpx;
  color: #e91e63;
  font-weight: 500;
  margin-right: 8rpx;
}

.heart-icon {
  font-size: 20rpx;
  color: #ff6b9d;
}

.quote-date {
  font-size: 20rpx;
  color: #999;
  display: block;
  text-align: right;
}

.photo-area {
  flex: 2;
}

.photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10rpx;
  background-color: #f5f5f5;
}

.baby-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  background-color: #f5f5f5;
  border-radius: 10rpx;
}

.placeholder-text {
  font-size: 28rpx;
  color: #999;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.section-title {
  font-size: 30rpx;
  font-weight: bold;
  color: #fff;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-section {
  margin-bottom: 30rpx;
}

.access-scroll {
  white-space: nowrap;
}

.access-row {
  display: flex;
  flex-direction: row;
  gap: 15rpx;
  padding: 0 20rpx;
}

.access-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10rpx;
  padding: 15rpx 20rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 120rpx;
  flex-shrink: 0;
}

.access-icon {
  font-size: 28rpx;
  margin-bottom: 8rpx;
  display: block;
}

.access-text {
  font-size: 22rpx;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

/* 图片预览样式 */
.image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.preview-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 40rpx;
  right: 40rpx;
  width: 60rpx;
  height: 60rpx;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
}

/* 爱心动画样式 */
.heart-animation-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.floating-heart {
  position: absolute;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.floating-heart.love {
  animation-name: floatLove;
}

.floating-heart.baby {
  animation-name: floatBaby;
}

@keyframes floatLove {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1) rotate(5deg);
  }
  80% {
    opacity: 1;
    transform: translateY(-80px) scale(1.1) rotate(-5deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0.8) rotate(10deg);
  }
}

@keyframes floatBaby {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateY(-15px) scale(1) rotate(-3deg);
  }
  80% {
    opacity: 1;
    transform: translateY(-60px) scale(1.05) rotate(3deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.9) rotate(-8deg);
  }
}